package com.ruoyi.system.service;

import com.ruoyi.system.domain.LeafWorkerId;

import java.util.List;

/**
 * @description: TODO
 * @Author: Zhuzhi
 * @Date: 2020/12/13 下午9:57
 */
public interface LeafWorkerIdService {
    /**
     * 查询所有Token
     *
     * @param namespace
     * @param hostIp
     * @return
     */
    public List<LeafWorkerId> selectLeafWorkerIdList(String namespace, String hostIp);

    /**
     * 新增Token
     *
     * @param leafWorkerId 参数
     * @return
     */
    public int insertLeafWorkerId(LeafWorkerId leafWorkerId);

    /**
     * 删除Token
     *
     * @param id 参数
     * @return
     */
    public int deleteLeafWorkerById(long id);

    /**
     * 新增Token
     *
     * @param namespace 参数
     * @param hostIp
     * @param workerId
     * @return
     */
    public LeafWorkerId selectLeafWorkerId(String namespace, String hostIp, Integer workerId);

}
